-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docs: light mode dark mode #8050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Added dark mode support in global CSS with new color variables. - Refactored ThemeScript component to improve theme preference handling. - Updated theme toggle components to accept class props for better styling. - Simplified theme toggle logic in ThemeToggle component. - Removed deprecated ThemeScript import from root component. - Cleaned up unused CSS styles related to theme toggle.
|
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
- Added CSS rules for dark mode image filtering and temporary workarounds. - Updated theme toggle components to remove unused imports and streamline code. - Introduced light mode styles for ecosystem elements based on user preferences.
- Added dark mode styles for various components including code sandbox and API documentation. - Removed sun-and-moon theme toggle components and associated CSS to streamline the codebase. - Updated theme icon styles for better responsiveness and consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your help @JerryWu1234
with this change the top right icons are not visible anymore. 🤔

https://qwik.dev/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, can you fix this issue as well please?
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start!
I also noticed that on mobile the icon is not centered. But on mobile it would be better to have the text in addition to the icon.
- Removed dark mode CSS rules from global styles and various components to simplify the codebase. - Updated theme toggle logic to improve responsiveness and ensure consistent theme application based on user preferences. - Enhanced theme script to handle theme attributes more robustly.
- Changed the fill attribute in Discord, GitHub, and Twitter logo SVGs from a specific color to 'currentColor' for better adaptability in different themes. - Cleaned up unnecessary CSS rules in the API styles to enhance maintainability.
- Moved the ThemeScript import to the theme-toggle component for better structure. - Removed the obsolete theme-script file to clean up the codebase. - Updated the colorSchemeChangeListener import to reflect the new file structure.
- Updated the theme toggle button styles to improve layout and alignment. - Added conditional text display for theme preference on smaller screens. - Adjusted visibility of theme icons based on screen size for a cleaner UI.
@wmertens done |
- Created a new load-theme.js file to encapsulate the theme loading logic. - Updated ThemeScript component to import and utilize the new loadThemeScript for improved code organization and maintainability.
- Eliminated the immediately invoked function expression (IIFE) in load-theme.js to simplify the theme loading logic. - Improved readability and maintainability of the theme loading process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this improvement 👏
What is it?
Description
Feature: Add System-Sync ("Auto") Theme to Docs
Checklist
pnpm change